package yto.freemarker.springcloud.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * 自定义的ribbon的规则
 * @author dongxing
 * @create 2018-02-28 20:04
 **/
@Component
public class CustomerConfiguration {

    @Bean
    public IRule iRule(){
        return new RandomRule();
    }
}
